import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '@/views/LoginView.vue'
import RegisterView from '@/views/RegisterView.vue'
import HomeView from '@/views/HomeView.vue'
import IndicatorView from '@/views/IndicatorView.vue'
import SelectindexView from '@/views/SelectindexView.vue'
import Aiview from '@/views/Aiview.vue'
import Family from '@/views/Family.vue'
import Personal from '@/views/Personal.vue'
import HealthAdivice from '@/views/HealthAdivice.vue'
import AdiviceHistoyRecordView from '@/views/AdiviceHistoyRecordView.vue'
import AlarmHistoryView from '@/views/AlarmHistoryView.vue'
import EquipmentManagementView from '@/views/EquipmentManagementView.vue'
import ContactDoctor from '@/views/ContactDoctor.vue'
// 全局主题配置
export const themeConfig = {
  primary: '#3B82F6', // 主色调：智能蓝
  secondary: '#10B981', // 次要色调：健康绿
  accent: '#8B5CF6', // 强调色：科技紫
  background: '#F9FAFB', // 背景色：浅灰
  text: '#1F2937', // 文本色：深灰
  lightText: '#6B7280', // 浅色文本
  success: '#10B981', // 成功色
  warning: '#F59E0B', // 警告色
  danger: '#EF4444', // 危险色
  cardBg: '#FFFFFF', // 卡片背景
  borderColor: '#E5E7EB', // 边框颜色
  shadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)', // 阴影
  borderRadius: '12px', // 圆角
  transition: 'all 0.3s ease', // 过渡效果
  fontFamily: "'Inter', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif", // 字体
  fontSize: {
    small: '14px',
    medium: '16px',
    large: '18px',
    xlarge: '24px',
    xxlarge: '32px'
  }
}

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),

  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginView,
    },{
      path: '/register',
      name: 'register',
      component: RegisterView,
    },{
      path: '/home',
      name: 'home',
      component: HomeView,
    },{
      path: '/indicator',
      name: 'indicator',
      component: IndicatorView,
    },{
      path: '/selectindex',
      name: 'selectindex',
      component: SelectindexView,
    },{
      path: '/aiview',
      name: 'aiview',
      component: Aiview,
    },{
      path: '/family',
      name: 'family',
      component: Family,
    },{
      path: '/personal',
      name: 'personal',
      component: Personal,
    },{
      path: '/healthadvice',
      name: 'healthAdvice',
      component: HealthAdivice,
    },{
      path: '/adivicehistoyrecord',
      name: 'adivicehistoyrecord',
      component:AdiviceHistoyRecordView,
    },{
      path: '/alarmhistory',
      name: 'alarmhistory',
      component: AlarmHistoryView,
    },{
      path: '/equipmentmanagement',
      name: 'equipmentmanagement',
      component: EquipmentManagementView,
    },{
      path: '/contactdoctor',
      name: 'contactdoctor',
      component: ContactDoctor,
    }
  ],
})

export default router
